home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 3733 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: OS features
  5. Date: 31 Jan 1996 22:03:20 +0100
  6. Organization: dis-
  7. Message-ID: <4eoleo$fjd@serpens.rhein.de>
  8. References: <4e657d$2db@news.rhrz.uni-bonn.de> <4950.6603T1192T1630@teclink.net> <4eoeid$k6f@news.rhrz.uni-bonn.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. fasten@zeus.informatik.uni-bonn.de (Bernhard Fastenrath) writes:
  12.  
  13. >A unix system call switches to kernel mode and back to user mode by means of
  14. >an interrupt without a context switch, this sounds more like what I had in mind.
  15. >It should be possible to make a low-overhead switch to another mode when a
  16. >system library that requires special permissions is called.
  17.  
  18. A UNIX system call is _slow_ compared to Exec task switching. That's why
  19. every efficient system tries to move as much data as possible with a single
  20. system call.
  21.  
  22. With X11 it is even worse since every command has to be funneled through the
  23. network system (even when it is local, a real network of course is slower).
  24. The X11 protocol therefore even queues many commands and operation is asynchronous
  25. (i.e.: without results) if possible. The X11 library does a great deal of caching
  26. results to avoid communication latency.
  27.  
  28. You see that a protected system requires different algorithms than an unprotected
  29. system.
  30.  
  31. >: Are you willing to sacrifice the speed to do these checks on almost every
  32. >: intiution function call?
  33.  
  34. >Make it optional (sys:prefs/kernel).
  35.  
  36. Sorry. This doesn't help. Then you could make the whole protection a debugging tool and
  37. avoid the work of rewriting the system.
  38.  
  39. -- 
  40.                                 Michael van Elst
  41.  
  42. Internet: mlelstv@serpens.rhein.de
  43.                                 "A potential Snark may lurk in every tree."
  44.